//---------------------------------------------------------------------------

#ifndef Participant11H
#define Participant11H
#include <vcl.h>
//---------------------------------------------------------------------------
class Participant11
{
    	private:
	//details of the participant
	int participantId; //holds the unique identity number for each participant
	AnsiString statusParticipant; //it holds whether a participant is
	//at the event(check-in), waiting to come to the event(pending) or
	//has left the event (check-out)
	AnsiString name; //the name of the participant
	int ticketPaid;//the amount of the ticket the participant has paid
	int penalties; //it has the value of 0 if the participant has paid the
	//whole ticket or 10 if not
	AnsiString eventAccount;//the account for the event
	AnsiString statusAccount;//it holds the status of the account
	//valid - can do transaction
	//invalid - cannot do transation, and that means the participant has left the event

	public:
	//constructors and destructors
Participant11(int partId, AnsiString statusP, AnsiString nm,
int paid, AnsiString eventA, AnsiString statusA);

	//methods and functions

	//get the id of the participant
	int getParticipantId();
	//modify the status of the participant at the entrance and at the exit
	void setStatusParticipant(AnsiString status);
	//get the status of the participant
	AnsiString getStatusParticipant();
	//check if the participant had paid the full price of the ticket: 35 euros
	bool checkTicketPaid ();
	//if the participant hasn't paid the full price of the ticket,
	//returns the amount he/she still has to pay
	void setStatusAccount ();
    //returns the details of the participant
	AnsiString asAString();
	//returns the name of the participant 
	AnsiString getName();
	//sets the ticket paid to 35
	void setTicketPaid();


};
#endif
